<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 270px;
            height: 160px;
            position: relative;
        }
        img{
            display: block;
            width: 270px;
            height: 160px;
            border-radius: 9px;
        }.btn{
            width: 232px;
            height: 40px;
            position: absolute;
            bottom: 0;
            left: 19px;
            overflow: hidden;
            border-radius: 40px;
            color: #fff;
            opacity: 0;
            transition: all .8s linear;
        }
        .box:hover .btn{
            opacity: 1;
            transform: translateY(-10px) ;
            
        }
        .box:hover{
            box-shadow:  0 20px 40px 0 rgb(0,0,0,0.3)               ;
        }
        span:nth-child(1){
            display: block;
            float: left;
            width: 116px;
            height: 40pxsss;
            background-color: orange;
            line-height: 40px;
            text-align: center;
            font-size:16px;

        }
        span:nth-child(2){
            display: block;
            float: left;
            width: 116px;
            height: 40pxsss;
            background-color: pink;
            line-height: 40px;
            text-align: center;
            font-size:16px;

        }
    </style>
</head>
<body>
    <div class="box">
        <img src="https://static.uemo.net/uploads/bbc6418d473afef2dfd0664fb4850736.jpg" alt="">
        <div class="btn">
            <span>点击预览</span>
            <span>免费试用</span>
        </div>
        
    </div>
</body>
</html>